<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="cookies"></div>
    <button onclick="f()">refl</button>
    <iframe src="http://www.bilibili.com" width="100%" height="100%" id="video"></iframe>
</body>
<script>
    function f() {

        var iframe = document.getElementById("video").contentWindow;
        iframe.location.reload();
        console.log(document.referrer)
        console.log(document.cookie)
        console.log(document.getElementById("video").contentWindow.document.cookie)
    }
    var acookie=document.cookie;
    document.getElementById("cookies").innerText = acookie;
    document.getElementById("video").contentWindow.document.cookie = document.cookie;
    var iframe = document.getElementById("video").contentWindow;
    iframe.location.reload(true);
    document.referrer = "https://www.bilibili.com";

</script>
</html>